﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Title" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SiteResource.Title()%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
    <link href="/Content/css/default.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/main.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/slider.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="/Scripts/slider.js"></script>
    <script type="text/javascript" src="/Scripts/library.js" charset="GB2312"></script>
    <script type="text/javascript" src="/Scripts/plug.js" charset="GB2312"></script>
    <script type="text/javascript">
        $(function () {
            new library.Index().Load();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="hotarea">
        <script type="text/javascript">
            var areadatasource = data.GetDataSource('workarea');
            for (var i = 1, len = areadatasource.length; i < len; i++) {
                document.write('<div class="hotarea-item">');
                document.write('<a href="/home/positionlist_areacode=' + areadatasource[i].value + '" target="_blank" >');
                document.write(areadatasource[i].name);
                document.write('</a>');
                document.write('</div>');
            }
        </script>
    </div>
    <div class="content">
        <div class="contentline">
            <div class="contentline-vitem">
                <div class="index-l1-left">
                    <div class="pubbuttom">
                        <%if (HttpContext.Current.User.Identity.IsAuthenticated)
                          {
                              if (new UserService(HttpContext.Current.User.Identity.Name).GetUser().Role == MemberStatus.Firm)
                              { %>
                        <a href="/CompanyCenter/Recruiting" target="_blank">
                            <img alt="免费发布兼职信息" src="/content/images/buttom-pubjob.png" />
                        </a>
                        <%}
                              else
                              {%>
                        <a href="/home/roleselect" target="_blank">
                            <img alt="免费发布兼职信息" src="/content/images/buttom-pubjob.png" />
                        </a>
                        <%} %>
                        <%}
                          else
                          { %>
                        <a href="/home/roleselect" target="_blank">
                            <img alt="免费发布兼职信息" src="/content/images/buttom-pubjob.png" />
                        </a>
                        <%} %>
                    </div>
                    <div class="delegationlink">
                        <a href="/account/cregister" target="_blank">
                            <img alt="用户注册" src="/content/images/register.png" />
                        </a>
                    </div>
                    <div class="hspace3">
                    </div>
                    <div class="delegationlink">
                        <a href="/home/delegations" target="_blank">
                            <img alt="兼职委托服务" src="/content/images/jzwt.png" />
                        </a>
                    </div>
                </div>
            </div>
            <div class="contentline-vseparator15px">
            </div>
            <div class="contentline-vitem">
                <div class="index-l1-right">
                    <!--/slider-->
                    <div id="slider">
                        <div class="wrap">
                            <div id="slide-holder">
                                <div id="slide-runner">
                                    <%for (int i = 0, len = SilderRwsource.Get.Count; i < len; i++)
                                      { %>
                                    <a href="<%:SilderRwsource.Get[i].Action %>" target="_blank">
                                        <img id="slide-img-<%:i+1 %>" src="<%:SilderRwsource.Get[i].Uri %>" class="slide"
                                            alt="<%:SilderRwsource.Get[i].Alt %>" /></a>
                                    <%} %>
                                    <div id="slide-controls">
                                        <p id="slide-client" class="text" style="font-weight: bolder">
                                            <strong></strong><span></span>
                                        </p>
                                        <p id="slide-desc" class="text">
                                        </p>
                                        <p id="slide-nav">
                                        </p>
                                    </div>
                                </div>
                                <!--content featured gallery here -->
                            </div>
                            <script type="text/javascript">
                                if (!window.slider) 
                                    var slider = {};
                                slider.data = [
                                <%for (int i = 0, len = SilderRwsource.Get.Count; i < len;i++ )
                                  { %>
                                { "id": "slide-img-<%:i+1 %>", "client": "<%:SilderRwsource.Get[i].Title %>", "desc": "<%:SilderRwsource.Get[i].Description %>" }<%if(i!=len-1){ %>,<%} %>
                                <%} %>
                                ];
                            </script>
                        </div>
                    </div>
                    <!--/slider-->
                </div>
            </div>
        </div>
        <div class="index-line-space">
        </div>
        <div class="contentline center">
            <%--<div class="aditem-left">
                <a href="http://s.click.taobao.com/t_11?e=%2BtSC5ziSlQIL9v%2BrE3RpgrBKMY5c5LFv04hp4sSIQ5%2FFbanU9DE3sTwl9Q%3D%3D&p=mm_32967371_3375876_10890952" target="_blank">
                    <img src="/content/images/adv/ad01.jpg" /></a></div>
            <div class="aditem-center">
                <a href="http://s.click.taobao.com/t_11?e=%2BtSC5ziSlHGYB19DHetrFwhnGRE%2FZ07bJdpBVlsA8jOskEeeWYDCpCCTy%2BPxAwS99g%3D%3D&p=mm_32967371_3375876_10890952" target="_blank">
                    <img src="/content/images/adv/ad02.jpg" /></a></div>
            <div class="aditem-right">
                <a href="http://s.click.taobao.com/t_11?e=%2BtSC5ziSlQIKXTum23VHLUx2Mi9BvFxTCg7CN9kKD8HJdox0eUoImgi5Ng%3D%3D&p=mm_32967371_3375876_10890952" target="_blank">
                    <img src="/content/images/adv/ad03.jpg" /></a></div>--%>
        <a href="http://www.rongmofang.com/" target="_blank">
                <img src="/content/images/rongmofang.gif" alt="融魔方P2P投资理财，高收益，本息安全有保障"/>
            </a>
        <%--<a href="/home/jxjy" target="_blank">
                <img src="/content/images/hanshou.png" alt="继续教育（专升本、大专函授）"/>
            </a>--%>
            <div style="overflow:hidden; width:100%; height:10px;"></div>
        <a target="_blank" href="/home/pugong"><img alt="富士康、英业达、广达 招聘直通车" src="/Content/Images/fskzp01.png" style="padding-bottom:10px;" /></a>

        <iframe id="f" width="950px" height="100px" src="http://union.yihaodian.com/link_make/viewPicInfo.do?imgSize=950x100&truckerU=101328546" frameborder="no" border="0" marginwidth="0" marginheight="0" allowtransparency="yes" scrolling="no" ></iframe>
        </div>
        <div class="index-line-space">
        </div>
        <div class="contentline">
            <div class="contentline-vitem">
                <!--长期招聘-->
                <div class="box1" style="height: 290px;">
                    <div class="box1-title">
                        <div class="box1-title-img">
                            <img alt="长期招聘" src="/content/images/cqzp.png" /></div>
                        <div class="box1-title-more">
                            <a href="/home/positionlist_qt=2" target="_blank">
                                <img alt="更多兼职信息" src="/content/images/more1.png" /></a>
                        </div>
                    </div>
                    <div class="box1-content">
                        <%var durable = ViewData["durable"] as ItemListBox<RecruitSheetModel>;
                          if (durable != null && durable.Data.Any())
                          {
                              for (int i = 0, len = durable.Data.Count; i < len; i++)
                              {%>
                        <div class="<%:i % 2 == 0?"box1-item3":"box1-item2"%>">
                            <div class="box1-item-title">
                                <a target="_blank" title="<%:durable.Data[i].Caption %>" href="/home/jobdetail_<%:durable.Data[i].Id %>">
                                    <%:durable.Data[i].Caption.PieceOfString(0,9)%></a></div>
                            <div class="box1-item-date">
                                <%:durable.Data[i].WorkArea.Mapping()%></div>
                        </div>
                        <%    }
                          } %>
                    </div>
                </div>
                <!----------->
            </div>
            <div class="contentline-vseparator15px">
            </div>
            <div class="contentline-vitem">
                <!--推荐兼职-->
                <div class="box2" style="height: 290px;">
                    <div class="box2-title">
                        <div class="box2-title-menu">
                            <div class="box2-title-img">
                                <img alt="推荐兼职" src="/content/images/tjjz.png" /></div>
                        </div>
                        <div class="box2-title-more">
                            <a target="_blank" href="/home/positionlist_qj=1">
                                <img alt="更多推荐兼职" src="/content/images/more2.png" /></a>
                        </div>
                    </div>
                    <div class="box2-content">
                        <div class="box2-content-left">
                            <%var rcmjob = ViewData["Recommand"] as ItemListBox<RecruitSheetModel>;
                              if (rcmjob != null && rcmjob.Data.Any())
                              {
                                  for (int i = 0, len = rcmjob.Data.Count > 10 ? 10 : rcmjob.Data.Count;
                                       i < len; i++)
                                  {%>
                            <div class="box2-item2-1">
                                <div class="box2-item-title">
                                    <a target="_blank" title="<%:rcmjob.Data[i].Caption %>" href="/home/jobdetail_<%:rcmjob.Data[i].Id %>">
                                        <%:rcmjob.Data[i].Caption.PieceOfString(0, 14)%></a></div>
                                <div class="box2-item-date">
                                    <%:rcmjob.Data[i].Refresh.ToString("MM-dd")%></div>
                                <div class="box2-item-area">
                                    <%:rcmjob.Data[i].WorkArea.Mapping()%></div>
                            </div>
                            <%} %>
                            <%} %>
                        </div>
                        <div class="box2-content-right">
                            <%if (rcmjob != null && rcmjob.Data.Count > 10)
                              {
                                  for (int i = 10, len = rcmjob.Data.Count; i < len; i++)
                                  { %>
                            <div class="box2-item2-1">
                                <div class="box2-item-title">
                                    <a target="_blank" title="<%:rcmjob.Data[i].Caption %>" href="/home/jobdetail_<%:rcmjob.Data[i].Id %>">
                                        <%:rcmjob.Data[i].Caption.PieceOfString(0, 14)%></a></div>
                                <div class="box2-item-date">
                                    <%:rcmjob.Data[i].Refresh.ToString("MM-dd")%></div>
                                <div class="box2-item-area">
                                    <%:rcmjob.Data[i].WorkArea.Mapping()%></div>
                            </div>
                            <%} %>
                            <%} %>
                        </div>
                    </div>
                </div>
                <!----------->
            </div>
        </div>
        <div class="index-line-space">
        </div>
        <div class="contentline center">
            <a href="/home/pugong" target="_blank">
                <img src="/content/images/fskzp02.png" alt="暑期招聘"/>
            </a>
            <%--<div class="aditem-left">
                <a href="#" target="_blank">
                    <img src="/content/images/adv/ad04.jpg" /></a></div>
            <div class="aditem-center">
                <a href="http://jiariqiyu.taobao.com/" target="_blank">
                    <img src="/content/images/adv/ad05.jpg" /></a></div>
            <div class="aditem-right">
                <a href="http://www.023tong.com/" target="_blank">
                    <img src="/content/images/adv/ad06.jpg" /></a></div>--%>
        </div>
        <div class="index-line-space">
        </div>
        <div class="contentline">
            <div class="contentline-vitem">
                <!--最新兼职-->
                <div class="box2">
                    <div class="box2-title">
                        <div class="box2-title-menu">
                            <div class="box2-title-img">
                                <img alt="最新兼职" src="/content/images/zxjz.png" /></div>
                        </div>
                        <div class="box2-title-more">
                            <a href="/home/positionlist_qt=1" target="_blank">
                                <img alt="更多最新兼职" src="/content/images/more2.png" /></a>
                        </div>
                    </div>
                    <div class="box2-content">
                        <div class="box2-content-left">
                            <%var newjob = ViewData["newjob"] as ItemListBox<RecruitSheetModel>;
                              if (newjob != null && newjob.Data.Any())
                              {
                                  for (int i = 0, len = newjob.Data.Count > 20 ? 20 : newjob.Data.Count;
                                       i < len; i++)
                                  {%>
                            <div class="box2-item2">
                                <div class="box2-item-title">
                                    <a target="_blank" title="<%:newjob.Data[i].Caption %>" href="/home/jobdetail_<%:newjob.Data[i].Id %>">
                                        <%:newjob.Data[i].Caption.PieceOfString(0, 14)%></a></div>
                                <div class="box2-item-date">
                                    <%:newjob.Data[i].Refresh.ToString("MM-dd")%></div>
                                <div class="box2-item-area">
                                    <%:newjob.Data[i].WorkArea.Mapping()%></div>
                            </div>
                            <%} %>
                            <%} %>
                        </div>
                        <div class="box2-content-right">
                            <%if (newjob != null && newjob.Data.Count > 20)
                              {
                                  for (int i = 20, len = newjob.Data.Count; i < len; i++)
                                  { %>
                            <div class="box2-item2">
                                <div class="box2-item-title">
                                    <a target="_blank" title="<%:newjob.Data[i].Caption %>" href="/home/jobdetail_<%:newjob.Data[i].Id %>">
                                        <%:newjob.Data[i].Caption.PieceOfString(0, 14)%></a></div>
                                <div class="box2-item-date">
                                    <%:newjob.Data[i].Refresh.ToString("MM-dd")%></div>
                                <div class="box2-item-area">
                                    <%:newjob.Data[i].WorkArea.Mapping()%></div>
                            </div>
                            <%} %>
                            <%} %>
                        </div>
                    </div>
                </div>
                <!----------->
            </div>
            <div class="contentline-vseparator15px">
            </div>
            <div class="contentline-vitem">
                <!--最新动态-->
                <div class="box1">
                    <div class="box1-title">
                        <div class="box1-title-img">
                            <img alt="会员动态" src="/content/images/zxdt.png" /></div>
                    </div>
                    <div id="dnccontainer" class="box1-content">
                    </div>
                </div>
                <!----------->
            </div>
        </div>
        <div class="index-line-space">
        </div>
        <div class="contentline center">
            <a target="_blank" href="http://s.click.taobao.com/t_9?p=mm_32967371_3375876_10890952&l=http%3A%2F%2Fwww.tmall.com%2F&eventid=101766">
                <img alt="TMall" src="http://img03.taobaocdn.com/tps/i3/T1Oh2NXetjXXcp9.bi-950-90.jpg" width="950px" height="90px" border="0" >
            </a>
        </div>
        <div class="contentline-vseparator15px">
            </div>
            <div class="index-line-space">
        </div>
        <%--<div class="contentline center">
            <a target="_blank" href="http://www.damaitg.com/">
                <img alt="大麦团" src="/content/images/damaitg.jpg" width="950px" height="90px" border="0" />
            </a>
        </div>--%>
    </div>
</asp:Content>
